import mongoose from "../index";
const UserSchema = new mongoose.Schema(
    {
        username: { type: String, required: true, unique: true },
        password: { type: String, required: true },
        email: { type: String, required: false },
    },
    {
        versionKey: false,
        timestamps: true,
    }
)
const userModel = mongoose.model('user', UserSchema)

export default userModel